import request from '../utils/request'

// 获取用户信息
export function getUserInfoApi() {
  return request({
    url: '/portal/user/info',
    method: 'get'
  })
}

// 获取企业信息
export function getCompanyInfoApi() {
  return request({
    url: '/portal/user/my_bind_company/simple',
    method: 'get'
  })
}

// 获取企业详情
export function getCompanyDetailApi() {
    return request({
        url: `/portal/user/my_bind_company/detail`,
        method: 'get'
    })
}

// 生成HR申请授权码
export function generateHrAuthCodeApi() {
    return request({
        url: '/portal/company/generate_hr_apply_code',
        method: 'get'
    })
}